package com.ss.android.account.customview.a;

import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.ss.android.article.browser.R;

import im.quar.autolayout.utils.AutoUtils;

public final class a extends Dialog {
    public static final class a$a {
        public Context mContext;
        public CharSequence b;
        public CharSequence c;
        public CharSequence d;
        public DialogInterface.OnClickListener e;
        public DialogInterface.OnClickListener f;

        public a$a(Context arg1) {
            this.mContext = arg1;
        }
    }

    public ImageView mImageClose;
    public TextView mTvMessage;
    public Button mBtnPositive;
    public Button mBtnNegative;

    public a(Context context) {
        super(context, R.style.SSTheme_Dialog_Alert_Night);
        this.requestWindowFeature(1);
        this.setContentView(com.ss.android.article.browser.R.layout.account_alert_dialog);
        AutoUtils.auto(this.findViewById(com.ss.android.article.browser.R.id.content_view));
        int v0 = AutoUtils.scaleValue(48);
        WindowManager.LayoutParams lp = this.getWindow().getAttributes();
        lp.width = this.getContext().getResources().getDisplayMetrics().widthPixels - v0;
        this.onWindowAttributesChanged(lp);
        this.mImageClose = this.findViewById(com.ss.android.article.browser.R.id.img_close);
        this.mTvMessage = this.findViewById(com.ss.android.article.browser.R.id.tv_message);
        this.mBtnPositive = this.findViewById(com.ss.android.article.browser.R.id.btn_positive);
        this.mBtnNegative = this.findViewById(com.ss.android.article.browser.R.id.btn_negative);
        this.mImageClose.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View arg2) {
                a.this.dismiss();
            }
        });
    }
}

